package org.ohos.rajawali3d.examples.wallpaper;

import ohos.aafwk.ability.fraction.FractionAbility;
import ohos.aafwk.content.Intent;
import org.ohos.rajawali3d.ResourceTable;


/**
 * @author Jared Woolston (jwoolston@idealcorp.com)
 */
public class WallpaperPreferenceActivity extends FractionAbility {

    @Override
    protected void onStart(Intent savedInstanceState) {
        super.onStart(savedInstanceState);
        setUIContent(ResourceTable.Layout_activity_settings);

       /* TODO:final ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.setDisplayHomeAsUpEnabled(true);
        }*/

        if (savedInstanceState == null) {
            getFractionManager().startFractionScheduler().replace(ResourceTable.Id_settings_fragment_container,
                    new FragmentPreferences())
                    .submit();
        }
    }


  /*  @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case ohos.R.id.home:
                finish();
                return true;
        }

        return super.onOptionsItemSelected(item);
    }*/
}
